Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime: implement Json output for Wasm #1660

Merged
merged 5 commits into from
Aug 26, 2024

Conversation

OlivierNicole
Copy link
Contributor

This is part of a series of PRs intending to reduce the diff between js_of_ocaml and wasm_of_ocaml (see ocaml-wasm/wasm_of_ocaml#47).

In Wasm, some additional functions are required to output Json.

lib/js_of_ocaml/json.ml Outdated Show resolved Hide resolved
runtime/obj.js Outdated Show resolved Hide resolved
lib/js_of_ocaml/json.ml Outdated Show resolved Hide resolved
Copy link
Member

@hhugo hhugo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the tests a little and added a request to add an extra comment.
Looks good otherwise.

@hhugo hhugo merged commit c58a528 into ocsigen:master Aug 26, 2024
17 checks passed
@OlivierNicole
Copy link
Contributor Author

Thank you for the review!

@OlivierNicole OlivierNicole deleted the converge-jsoo-tip-10 branch August 26, 2024 12:34

(**/**)

val output_ : 'a -> string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn’t added to the mli by mistake?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added this while playing with tests. I could be removed indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants